package com.platform.car.service;

import com.platform.car.model.Parking;
import com.platform.car.model.Parkingpay;
import com.platform.car.model.Parkuse;
import com.platform.common.base.service.BaseService;
import com.platform.common.page.Page;

import java.util.Calendar;
import java.util.Date;
import java.util.List;


public interface ParkingpayService extends BaseService<Parkingpay> {

    /**
     * 计算需要支付的费用
     * @param parkuse
     * @param parking
     * @return
     */
    double[] computeMoney(Parkuse parkuse, Parking parking);

    List<Parkingpay> selectByParkuserId(Integer parkuseId);

    Parkingpay selectParkuserId(Integer parkuseId);

    /**
     * 指定超过三个小时未取消则生成订单
     * @param parkuse
     */
    void payMoney(Parkuse parkuse);


    /**
     * 根据订单的ID 查询
     * @param parkingpayId
     * @return
     */
    Parkingpay selectById(Integer parkingpayId);


}
